<template>
  <div>
    <TypeNav />
    <Lister />
    <Recommend />
    <Rank />  
    <Like />
    <Floor v-for="(list,index) in floorlist" :key="list.id" :floor="list"/>
  </div>
</template>

<script>
import TypeNav from "@/components/TypeNav/index.vue";
import Lister from "@/pages/Home/Lister";
import Recommend from "@/pages/Home/Recommend";
import Rank from "@/pages/Home/Rank";
import Like from "@/pages/Home/Like";
import Floor from "@/pages/Home/Floor";
import { mapState } from "vuex";
export default {
  naem: "",
  mounted() {
    this.$store.dispatch('getFloorlist');
    this.$store.dispatch('GetuserInfo')
  },
  components: {
    TypeNav,
    Lister,
    Recommend,
    Rank,
    Like,
    Floor,
  },
  computed: {
    // ...mapState(["count"]),
    ...mapState({
      floorlist: (state) => state.home.floorlist
    })
    
  },

};
</script>

<style>
</style>